/*
 * Copyright (C) 2004-2007  Autodesk, Inc.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of version 2.1 of the GNU Lesser
 * General Public License as published by the Free Software Foundation.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*
*
*/

#pragma once

class FdoWcsOvRasterDefinition;

BEGIN_NAMESPACE_OSGEO_FDO_PROVIDERS_WCS_OVERRIDE
ref class OvCoverageCollection;

/// <summary> 
/// The FdoWcsOvRasterDefinition class defines the physical overrides for a raster property in a WMS FDO schema.
/// </summary>
public ref class OvRasterDefinition : public NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA::PhysicalElementMapping
{
public:
    /// <summary>Constructs a new Raster Definition.</summary>
    OvRasterDefinition();

    /// <summary>Gets the spatial context in which the requested 
    /// WCS map will be returned.</summary>
    /// <returns>Returns the WCS Provider's spatial context name.</returns> 
    /// <remarks>The same spatial context name applies to all layers 
    /// in a single WCS class definition.</remarks>
    /// <summary>Sets the spatial context in which the requested 
    /// WCS map will be returned.</summary>
    /// <returns>Returns nothing.</returns> 
    /// <remarks>The same spatial context name applies to all layers 
    /// in a single WCS class definition.</remarks>
    property String^ SpatialContextName
    {
        String^ get();
        System::Void set(String^ value);
    }

    /// <summary>Gets the WCS coverages that will be used to construct 
    /// the composite WCS image.</summary>
    /// <returns>Returns the collection of WCS coverages associated to the logical 
    /// FDO class definition.</returns> 
    /// <remarks>A WCS shall render the requested coverages by drawing 
    /// the first map in the list bottommost, the next one over that, 
    /// and so on.</remarks>
    property NAMESPACE_OSGEO_FDO_PROVIDERS_WCS_OVERRIDE::OvCoverageCollection^ Coverages
    {
        NAMESPACE_OSGEO_FDO_PROVIDERS_WCS_OVERRIDE::OvCoverageCollection^ get();
    }

internal:
    OvRasterDefinition(System::IntPtr unmanaged, System::Boolean autoDelete);

    inline FdoWcsOvRasterDefinition* GetImpObj();
public:
    virtual IntPtr GetDisposableObject() override;
};

END_NAMESPACE_OSGEO_FDO_PROVIDERS_WCS_OVERRIDE
